package com.amado.course04IfElse;

public class If {
	public static void main(String[] argn) {
		java.util.Scanner sc = new java.util.Scanner(System.in);
		System.out.println("请输入一个值");
		int a = sc.nextInt();
		int b = sc.nextInt();
		if (a % 2 == 0) {
			if (b % 2 == 0) {
				System.out.println("a和b都是偶数");
			} else {
				System.out.println("a是偶数，b是奇数");
			}
		} else {
			if (b % 2 == 0) {
				System.out.println("a是奇数，b是偶数");
			} else {
				System.out.println("a和b都是奇数");
			}
		}
	}
}